package jp.co.jalinfotec.sxt.service;

import java.util.List;

import jp.co.jalinfotec.sxt.dto.UserDto;

/**
 * Interface to manipulate user information
 */
public interface UserService {
	
	/**
	 * Store user info.<br />
	 * When user exists, user info will be updated.
	 * @param bean user information
	 * @return on success, return true.
	 */
	boolean store(UserDto bean);
	
	/**
	 * Delete user info.
	 * @param bean User info.
	 * @return on success, return true.
	 */
	boolean delete(UserDto bean);
	
	/**
	 * Get user info.
	 * @param id User ID
	 * @return User info.
	 */
	UserDto get(String id);
	
	/**
	 * Get list of users.
	 * @return list of users.
	 */
	List<UserDto> getAll();
	
	/**
	 * Check if the specified user exists.
	 * @param id UserID
	 * @return when exists, return true.
	 */
	boolean exist(String id);
}
